package org.train.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.train.service.ChartService;
import org.train.util.R;

@RestController
@RequestMapping("/chart")
public class ChartController{
    @Autowired
    private ChartService chartService;

    @GetMapping("/pieData")
    public R pieData(){
        return chartService.pieData();
    }
}
